package com.haiyou.dc.kafka.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.*;
import java.io.Serializable;


/**
 * 电影
 *
 * @author Administrator
 * @date 2020-02-23 15:41:08
 */
@ApiModel(value = "电影")
@Data
@Accessors(chain = true)
@Table(name = "movie")
public class Movie implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @ApiModelProperty(value = "id", name = "id")
    private Integer id;

    /**
     * 电影标题
     */
    @Column(name = "movie_title")
    @ApiModelProperty(value = "电影标题", name = "movieTitle")
    private String movieTitle;

    /**
     * 电影介绍
     */
    @Column(name = "movie_introduction")
    @ApiModelProperty(value = "电影介绍", name = "movieIntroduction")
    private String movieIntroduction;

    /**
     * 电影评分
     */
    @Column(name = "movie_rating")
    @ApiModelProperty(value = "电影评分", name = "movieRating")
    private Float movieRating;

    /**
     * 发布日期
     */
    @Column(name = "movie_release_date")
    @ApiModelProperty(value = "发布日期", name = "movieReleaseDate")
    private String movieReleaseDate;

}
